<!--  -->
<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>OSG</title>
		<script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js">
		</script>
	</head>
	<body>

	</body>

	<script>
	
	
		function getUrlParams() {
			var params = {};
			var url = window.location.href;
			var queryString = url.substring(url.indexOf('?') + 1);
			var keyValues = queryString.split('&');

			keyValues.forEach(function(keyValue) {
				var pair = keyValue.split('=');
				var key = decodeURIComponent(pair[0]);
				var value = decodeURIComponent(pair[1] || '');

				if (key !== '') {
					if (params[key]) {
						if (Array.isArray(params[key])) {
							params[key].push(value);
						} else {
							params[key] = [params[key], value];
						}
					} else {
						params[key] = value;
					}
				}
			});

			return params;
		}
		
		
		
		
	document.addEventListener('UniAppJSBridgeReady', function() {
	    var params = getUrlParams();
	    
	    // window.FlutterBridge.postMessage(params.order_id)
	    
	    console.log('params.web') 
	    console.log(params)
	    
	     
	     if(params.web =='web'){
	         window.location.href = 'http://osg5.wexiang.vip/#/web_tabs/shopping/mall_wallet'
	     }else if(params.web =='back'){
	        window.location.href = 'http://osg5.wexiang.vip/#/web_tabs/details/pay_success?id='+params.order_id
	       
	     }else if(params.web =='tuoguan'){
	        window.location.href = 'http://osg5.wexiang.vip/#/user/assets'
	       
	     }
	     
	     
	     
	   })
	
	
	
 
   
 

	 
	</script>
</html>
.